<?php

use Illuminate\Support\Facades\Schema;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class AddColToStaffTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::table('staff', function (Blueprint $table) {
            $table->integer('person_img_id')->default(0)->comment('个人形象图片')->after('user_id');
            $table->string('position')->nullable()->comment('个人职位')->after('phone');
            $table->string('email')->nullable()->comment('个人邮箱')->after('phone');
            $table->string('address_province')->nullable()->comment('个人地址')->after('phone');
            $table->string('address_city')->nullable()->comment('个人地址')->after('phone');
            $table->string('address_area')->nullable()->comment('个人地址')->after('phone');
            $table->string('address_detail')->nullable()->comment('个人地址')->after('phone');
            $table->text('introduce')->nullable()->comment('个人简介')->after('phone');

        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::table('staff', function (Blueprint $table) {
            //
        });
    }
}
